<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link rel="stylesheet" href="/static/wechat/css/mui.min.css">

    <style type="text/css">
        .mui-bar-nav {
            background-color: #002849;
        }

        .mui-title {
            color: #B2B055;
        }
    </style>

</head>
<body>
<script src="/static/wechat/js/mui.min.js"></script>
<script type="text/javascript">
    mui.init()
</script>
<div class="mui-content">
    <header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.go(-1);"></a>
        <h1 class="mui-title">医疗废物统计系统</h1>
        <a class="mui-icon mui-icon-bars mui-pull-right" href="{:url('wechat/index/index')}"></a>
    </header>
    <div class="mui-card" style="margin-top: 52px;">

        <div class="mui-card-header" style="background-color: #90C9FA;">医疗机构名称:{$user['department']}
            <button type="button" class="mui-btn mui-btn-primary new_order" onclick="return false;">确认
            </button>
        </div>

        <div class="mui-card-content">
            <form>
                <div class="mui-card-content-inner">
                    <div class="mui-content-padded" style="margin: 5px;">

                        <h5>HW01  831-001-01感染性废物(单位:kg)</h5>
                        <div class="mui-input-row">
                            <input type="text" name="hw_001" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>

                        <h5>HW01  831-002-01损伤性废物(单位:kg)</h5>
                        <div class="mui-input-row">
                            <input type="text" name="hw_002" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>

                        <h5>HW01  831-003-01病理性废物(单位:kg)</h5>
                        <div class="mui-input-row">
                            <input type="text" name="hw_003" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>

                        <h5>HW01  831-004-01化学性废物(单位:kg)</h5>
                        <div class="mui-input-row">
                            <input type="text" name="hw_004" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>

                        <h5>HW01 900-001-01为防治动物传染病而需要收集和处置的废物(单位:kg)</h5>
                        <div class="mui-input-row">
                            <input type="text" name="hw_900" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>

                        <!--<h5>货物名称</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="goods" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->

                    <!---->
                        <!--<h5>单位</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<select name="goods_attribute" id="" style="padding: 4px 15px;height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);">-->
                                <!--<option value="吨">公斤</option>-->
                                <!--<option value="吨">吨</option>-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<h5>重量</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="goods_weight" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <!--<h5>合同号</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="apply_contract" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <!--<h5>客户名称</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="customer_name" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <!--<h5>目的地</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="destination" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <!--<h5>发货地</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="send_place" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <!--<h5>发货时间</h5>-->
                        <!--<div class="mui-input-row">-->
                            <!--<input type="text" name="send_time" id="date" class="mui-input"-->
                                   <!--style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"-->
                                   <!--data-input-password="3">-->
                        <!--</div>-->
                        <h5>处理日期</h5>
                        <div class="mui-input-row">
                            <input type="text" value="<?php echo date('Y-m-d H:i:s');?>" name="apply_date" disabled="disabled" class="mui-input"
                                   style="height: 34px;border-radius: 6px;border: 0; background-color: rgba(0, 0, 0, .1);;"
                                   data-input-password="3">
                        </div>
                        <h5>备注</h5>
                        <div class="mui-input-row"  style="margin: 10px 5px;">
                        <textarea id="textarea" name="remarks" style="background-color: rgba(0, 0, 0, .1);;" rows="3"
                                  placeholder="备注信息"></textarea>
                        </div>

                        </div>
                        <div class="mui-input-group">
                            <div class="mui-input-row mui-plus-visible">
                                <label>Input</label>
                                <input type="text" class="mui-input-speech mui-input-clear" placeholder="语音输入"
                                       data-input-clear="6" data-input-speech="6"><span
                                    class="mui-icon mui-icon-clear mui-hidden"></span><span
                                    class="mui-icon mui-icon-speech"></span>
                            </div>
                            <div class="mui-button-row">


                            </div>
                        </div>
                    </div>
                    </ul>
            </form>
                </div>

        </div>
    </div>
</div>
<script src="/static/plugins/AdminLTE-2.4/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/static/lib/layer/layer.js"></script>
<script src="/static/lib/layDate/laydate.js"></script>
<script>
    laydate.render({
        elem: '#date'
    });
</script>
<script>
    $('.new_order').click(function () {
        $.ajax({
            url: "{:url('wechat/Apply/NewOrder')}",
            type: 'POST',
            data: $('form').serialize(),
            dataType: 'json',
            success: function (data) {
                if (data.code == 1) {
                    layer.msg(data.msg, {
                            icon: 6,
                            time: 2000
                        }, function () {
                            location.href = data.url;
                        }
                    );
                } else {
                    layer.open({
                        title: '添加失败',
                        content: data.msg,
                        icon: 5
                    })
                }

            }
        });
        return false;
    });
</script>

</body>

</html>
